package com.shuda.business.channel.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.time.LocalDateTime;

/**
 * 分发方案查询DTO类
 */
@Schema(name = "DistributionSchemeQueryDTO", description = "分发方案查询DTO")
public class DistributionSchemeQueryDTO {

    @Schema(description = "方案名称")
    private String schemeName;

    @Schema(description = "方案编码")
    private String schemeCode;

    @Schema(description = "上游渠道ID")
    private Long upstreamChannelId;

    @Schema(description = "下游渠道ID")
    private Long downstreamChannelId;

    @Schema(description = "方案状态(enabled-启用,disabled-禁用)")
    private String schemeStatus;

    @Schema(description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    /** 访问器 */
    public String getSchemeName() { return schemeName; }
    public void setSchemeName(String schemeName) { this.schemeName = schemeName; }
    public String getSchemeCode() { return schemeCode; }
    public void setSchemeCode(String schemeCode) { this.schemeCode = schemeCode; }
    public Long getUpstreamChannelId() { return upstreamChannelId; }
    public void setUpstreamChannelId(Long upstreamChannelId) { this.upstreamChannelId = upstreamChannelId; }
    public Long getDownstreamChannelId() { return downstreamChannelId; }
    public void setDownstreamChannelId(Long downstreamChannelId) { this.downstreamChannelId = downstreamChannelId; }
    public String getSchemeStatus() { return schemeStatus; }
    public void setSchemeStatus(String schemeStatus) { this.schemeStatus = schemeStatus; }
    public LocalDateTime getStartTime() { return startTime; }
    public void setStartTime(LocalDateTime startTime) { this.startTime = startTime; }
    public LocalDateTime getEndTime() { return endTime; }
    public void setEndTime(LocalDateTime endTime) { this.endTime = endTime; }
}